{% extends "base_jrcadmin1.html" %}

{% block object-tools %}

    <ul class="object-tools">
        <li><a href="#">Upload new file</a></li>
    </ul>

{% endblock %}

{% block content %}

    <table>
    <tr>
        <th>
        PK
        </th><th>
        Name
        </th><th>
        Filename
        </th><th>
        File size
        </th><th>
        Created
        </th><th>
        Actions
        </th><th>
    </tr>
    {% for item in object_list %}
    
        <tr>
            <td>{{ item.pk }}</td>
            <td>{{ item.original_name }}</td>
            <td>{{ item.import_file }}</td>
            <td>{{ item.created_at|date:"Y-m-d H:i" }}</td>
            <td>
                <a href="/ximport/uploadfile/{{ item.pk }}/show/" class="viewlink">Show</a>
                <a href="/ximport/uploadfile/{{ item.pk }}/parse/" class="filelink">Parse</a>
                <a href="/ximport/uploadfile/{{ item.pk }}/delete/" class="deletelink">Delete</a>
            </td>
    
    {% empty %}

        <tr>
            <td colspan="5">No files!</td>
        </tr>
    
    {% endfor %}
    </table>

{% endblock %}
